package com.ruoyi.system.util;

import com.ruoyi.system.domain.IndicatorJudgement;
import com.ruoyi.system.domain.IndicatorSystemData;
import com.ruoyi.system.service.IIndicatorJudgementService;
import com.ruoyi.system.service.IIndicatorSystemDataService;
import com.ruoyi.system.service.impl.IndicatorServiceImpl;
import com.ruoyi.system.service.impl.IndicatorSystemDataServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Component
public class SubjectiveWeightCalculateUtil {
    public HashMap<Long, Double> calculateSubjectiveWeight(IndicatorJudgement indicatorJudgement) {
        JudgeResultObject resultObject = JudgeResultObject.parseFromJson(indicatorJudgement.getJudgeMatrix());
        HashMap<Long, Double> map = new HashMap<>();
        resultObject.calculateWeight(map);
        return map;
    }



}
